﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Apewer.Web
{

    /// <summary>API 结果。</summary>
    public abstract class ActionResult : IActionResult, IHttpActionResult, IDisposable
    {

        /// <summary>释放系统资源。</summary>
        public virtual void Dispose() { }

        // /// <summary>释放系统资源。</summary>
        // /// <param name="disposing">TRUE：释放托管资源和非托管资源。FALSE：释放非托管资源。</param>
        // protected virtual void Dispose(bool disposing) { }

        /// <summary>执行结果。</summary>
        public abstract void ExecuteResult(ApiContext context);

    }

}
